package com.xbongbong.paas.constant;

import static com.xbongbong.paas.enums.ConditionEnum.*;

/**
 * https://xbb.yuque.com/xbb/vsf9sv/hsq93o
 * @author: chunyang.qin
 * @date: 2020/12/2 19:48
 * @desrcption:  评分规则的搜索条件常量
 */
public class ScoreRuleConditionConstant {

    /**
     * 时间规则：大于等于，小于等于，不为空，为空，选择范围；
     */
    public static final String[] DATETIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol(), RANGE.getSymbol()};

    /**
     * 文本规则：为空，不为空；
     */
    public static final String[] TEXT = {EMPTY.getSymbol(), NOEMPTY.getSymbol()};
    /**
     * 下拉框规则：等于，不等于，为空，不为空；
     */
    public static final String[] COMBO = {EQUAL.getSymbol(), NOEQUAL.getSymbol(),EMPTY.getSymbol(), NOEMPTY.getSymbol()};

    /**
     * 单选按钮：等于，不等于，为空，不为空；
     */
    public static final String[] RADIO_GROUP = {EQUAL.getSymbol(), NOEQUAL.getSymbol(),EMPTY.getSymbol(), NOEMPTY.getSymbol()};

    /**
     * 多行文本：为空，不为空；
     */
    public static final String[] TEXTAREA = {EMPTY.getSymbol(), NOEMPTY.getSymbol()};

    /**
     * 数字规则：大于等于，等于，小于等于，不为空，为空，选择范围，不等于，大于，小于；
     */
    public static final String[] NUM = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol(),
            GREATERTHAN.getSymbol(), LESSTHAN.getSymbol(), EQUAL.getSymbol(), NOEQUAL.getSymbol(), RANGE.getSymbol()};

    /**
     * 复选框规则：包含任意一个，同时包含，等于，为空，不为空；
     */
    public static final String[] CHECKBOX_GROUP = {INCLUDE.getSymbol(), ALLINCLUDE.getSymbol(), EQUAL.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol()};
    /**
     * 下拉复选框规则：包含任意一个，同时包含，等于，为空，不为空；
     */
    public static final String[] COMBO_CHECK = {INCLUDE.getSymbol(), ALLINCLUDE.getSymbol(), EQUAL.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol()};

    /**
     * 创建时间：大于等于，小于等于，选择范围
     */
    public static final String[] ADDTIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol(), RANGE.getSymbol()};

    /**
     * 更新时间
     */
    public static final String[] UPDATETIME = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol(), RANGE.getSymbol()};

    /**
     *  等于 ,包含任意一个,同时包含,为空,不为空
     */
    public static final String[] LABEL = {EQUAL.getSymbol(), INCLUDE.getSymbol(), ALLINCLUDE.getSymbol(), EMPTY.getSymbol(), NOEMPTY.getSymbol()};

    /**
     *评分展示范围规则：大于等于，等于，小于等于，选择范围，不等于，大于，小于；
     */
    public static final String[] SCORE_RANGE = {GREATEREQUAL.getSymbol(), LESSEQUAL.getSymbol(),
            GREATERTHAN.getSymbol(), LESSTHAN.getSymbol(), EQUAL.getSymbol(), NOEQUAL.getSymbol(), RANGE.getSymbol()};

    /**
     * 阶段推进器规则：等于，不等于，为空，不为空；
     */
    public static final String[] STAGE_THRUSTER = {EQUAL.getSymbol(), NOEQUAL.getSymbol(),EMPTY.getSymbol(), NOEMPTY.getSymbol()};
}
